using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ConversionTools._FromRaster
{
    /// <summary>
    /// <para>Raster to Float</para>
    /// <para>Converts a raster dataset to a file of binary floating-point values representing raster data.</para>
    /// <para>将栅格数据集转换为表示栅格数据的二进制浮点值文件。</para>
    /// </summary>    
    [DisplayName("Raster to Float")]
    public class RasterToFloat : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public RasterToFloat()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_raster">
        /// <para>Input raster</para>
        /// <para><xdoc>
        ///   <para>The input raster dataset.</para>
        ///   <para>The raster can be integer or floating-point type.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输入栅格数据集。</para>
        ///   <para>栅格可以是整数类型，也可以是浮点类型。</para>
        /// </xdoc></para>
        /// </param>
        /// <param name="_out_float_file">
        /// <para>Output floating point raster file</para>
        /// <para><xdoc>
        ///   <para>The output floating-point raster file.</para>
        ///   <para>The file name must have a .flt extension.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出浮点栅格文件。</para>
        ///   <para>文件名必须具有 .flt 扩展名。</para>
        /// </xdoc></para>
        /// </param>
        public RasterToFloat(object _in_raster, object _out_float_file)
        {
            this._in_raster = _in_raster;
            this._out_float_file = _out_float_file;
        }
        public override string ToolboxName => "Conversion Tools";

        public override string ToolName => "Raster to Float";

        public override string CallName => "conversion.RasterToFloat";

        public override List<string> AcceptEnvironments => ["autoCommit", "cellSize", "cellSizeProjectionMethod", "configKeyword", "extent", "geographicTransformations", "outputCoordinateSystem", "scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_in_raster, _out_float_file];

        /// <summary>
        /// <para>Input raster</para>
        /// <para><xdoc>
        ///   <para>The input raster dataset.</para>
        ///   <para>The raster can be integer or floating-point type.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输入栅格数据集。</para>
        ///   <para>栅格可以是整数类型，也可以是浮点类型。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_raster { get; set; }


        /// <summary>
        /// <para>Output floating point raster file</para>
        /// <para><xdoc>
        ///   <para>The output floating-point raster file.</para>
        ///   <para>The file name must have a .flt extension.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出浮点栅格文件。</para>
        ///   <para>文件名必须具有 .flt 扩展名。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output floating point raster file")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_float_file { get; set; }


        public RasterToFloat SetEnv(int? autoCommit = null, object cellSize = null, object configKeyword = null, object extent = null, object geographicTransformations = null, object outputCoordinateSystem = null, object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(autoCommit: autoCommit, cellSize: cellSize, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, outputCoordinateSystem: outputCoordinateSystem, scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}